import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86186
 * Date: 2023-10-04
 * Time: 16:56
 */
public class Test4 {
    public static void main(String[] args) {
        File file = new File("D:/code/this-is-my-java-ee-learning");
        //list() 方法以字符串的形式返回指定目录下的所有文件夹/文件的名称
        String[] str = file.list();
        System.out.println(Arrays.toString(str));
    }
}
